<template>
  <div>
    <h2>我是About的内容</h2>
  </div>
</template>

<script>
import axios from "axios";

export default {
  name: "About",
  mounted() {
    console.log('我是About组件，我被挂载了')
  },
  beforeDestroy() {
    console.log('我是About组件，我要被销毁了')
  },
  //通过路由规则，进入该组件时被调用
  beforeRouteEnter(to,from,next){

  },
  //通过路由规则，离开该组件时被调用
  beforeRouteLeave(to,from,next){

  }
}
</script>

<style scoped>

</style>